#pragma once  // MONEY_H

class CMoney
{
public:
    CMoney(std::string name = "", long double principal = 0.0, double rate = 0.0);
    ~CMoney();
public:
    long double getTotal();
    std::string getName() { return m_name; }
    void setValues(std::vector<double> value) { m_values = value; }
    virtual void refresh() = 0;
    virtual void print() = 0;
protected:
    std::string m_name;
    std::vector<double> m_values;
    double m_rate;
    time_t m_startDate;
    time_t m_endDate;
    long double m_principal;
};